package com.ruoyi.jjm.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 村民信息对象 t_client_user
 * 
 * @author tsr
 * @date 2020-07-15
 */
public class ClientUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** null */
    private Long id;

    /** 户主 */
    @Excel(name = "户主")
    private String masterName;

    /** 户主电话 */
    @Excel(name = "户主电话")
    private String masterPhoneNumber;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String masterIdentityCardNumber;

    /** 1.洁净煤取暖   2.采用其他清洁方式取暖  3.暂时不取暖  4.生物质取暖 */
    @Excel(name = "取暖方式",readConverterExp="1=洁净煤取暖,2=采用其他清洁方式取暖,3=暂时不取暖,4=生物质取暖")
    private Integer keepwarmType;

    /** 是否配有型煤专用炉具 */
    @Excel(name = "是否配有型煤专用炉具",readConverterExp="0=否,1=是")
    private Integer stove;

    /**
     * 是否安装一氧化碳报警器
     */
    private Integer alarm;

    /** 是否进行广播媒体宣传 */
    @Excel(name = "是否进行广播媒体宣传",readConverterExp="0=否,1=是")
    private Integer media;

    /** 是否发放明白纸 */
    @Excel(name = "是否发放明白纸",readConverterExp="0=否,1=是")
    private Integer note;

    /** 取暖面积 */
    @Excel(name = "取暖面积",readConverterExp="1=20㎡以下,2=20㎡-60㎡,3=60㎡-80㎡,4=80㎡-100㎡,5=100㎡-150㎡,6=150㎡-200㎡,7=200㎡以上")
    private Integer area;

    @Excel(name = "本户是否在辖区内",readConverterExp="0=否,1=是")
    private Integer isIn;

    /** 所属村 */
    @Excel(name = "所属村")
    private Long villageId;

    /** 户内人口 */
    @Excel(name = "户内人口")
    private Long population;

    /** 二维码 */
    @Excel(name = "二维码")
    private String qrCode;

    /** 包联人ID */
    @Excel(name = "包联人ID")
    private Long baolianrenId;

    /** 网格员ID */
    @Excel(name = "网格员ID")
    private Long gridId;

    private String gridName;

    private Double totalAmount;

    private String keepwarmTypeValue;

    private String areaValue;

    private String address;

    private GridMemeber gridMemeber;

    private Baolianren baolianren;

    /**购煤数量**/
    private BigDecimal amount;

    /** 购煤金额 */
    private BigDecimal money;

    private Long clientOrderId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMasterName(String masterName) 
    {
        this.masterName = masterName;
    }

    public String getMasterName() 
    {
        return masterName;
    }
    public void setMasterPhoneNumber(String masterPhoneNumber) 
    {
        this.masterPhoneNumber = masterPhoneNumber;
    }

    public String getMasterPhoneNumber() 
    {
        return masterPhoneNumber;
    }
    public void setMasterIdentityCardNumber(String masterIdentityCardNumber) 
    {
        this.masterIdentityCardNumber = masterIdentityCardNumber;
    }

    public String getMasterIdentityCardNumber() 
    {
        return masterIdentityCardNumber;
    }
    public void setKeepwarmType(Integer keepwarmType)
    {
        this.keepwarmType = keepwarmType;
    }

    public Integer getKeepwarmType()
    {
        return keepwarmType;
    }
    public void setStove(Integer stove) 
    {
        this.stove = stove;
    }

    public Integer getStove() 
    {
        return stove;
    }
    public void setMedia(Integer media) 
    {
        this.media = media;
    }

    public Integer getMedia() 
    {
        return media;
    }
    public void setNote(Integer note) 
    {
        this.note = note;
    }

    public Integer getNote() 
    {
        return note;
    }
    public void setArea(Integer area) 
    {
        this.area = area;
    }

    public Integer getArea() 
    {
        return area;
    }
    public void setVillageId(Long villageId) 
    {
        this.villageId = villageId;
    }

    public Long getVillageId() 
    {
        return villageId;
    }
    public void setPopulation(Long population) 
    {
        this.population = population;
    }

    public Long getPopulation() 
    {
        return population;
    }
    public void setQrCode(String qrCode) 
    {
        this.qrCode = qrCode;
    }

    public String getQrCode() 
    {
        return qrCode;
    }
    public void setBaolianrenId(Long baolianrenId) 
    {
        this.baolianrenId = baolianrenId;
    }

    public Long getBaolianrenId() 
    {
        return baolianrenId;
    }
    public void setGridId(Long gridId) 
    {
        this.gridId = gridId;
    }

    public Long getGridId() 
    {
        return gridId;
    }

    public String getGridName() {
        return gridName;
    }

    public void setGridName(String gridName) {
        this.gridName = gridName;
    }

    public Integer getAlarm() {
        return alarm;
    }

    public void setAlarm(Integer alarm) {
        this.alarm = alarm;
    }

    public Double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Double totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Baolianren getBaolianren() {
        if(baolianren == null){
            baolianren = new Baolianren();
        }
        return baolianren;
    }

    public void setBaolianren(Baolianren baolianren) {
        this.baolianren = baolianren;
    }

    public String getKeepwarmTypeValue() {
        return keepwarmTypeValue;
    }

    public void setKeepwarmTypeValue(String keepwarmTypeValue) {
        this.keepwarmTypeValue = keepwarmTypeValue;
    }

    public String getAreaValue() {
        return areaValue;
    }

    public void setAreaValue(String areaValue) {
        this.areaValue = areaValue;
    }

    public GridMemeber getGridMemeber() {
        return gridMemeber;
    }

    public void setGridMemeber(GridMemeber gridMemeber) {
        this.gridMemeber = gridMemeber;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public Integer getIsIn() {
        return isIn;
    }

    public void setIsIn(Integer isIn) {
        this.isIn = isIn;
    }

    public Long getClientOrderId() {
        return clientOrderId;
    }

    public void setClientOrderId(Long clientOrderId) {
        this.clientOrderId = clientOrderId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("masterName", getMasterName())
            .append("masterPhoneNumber", getMasterPhoneNumber())
            .append("masterIdentityCardNumber", getMasterIdentityCardNumber())
            .append("keepwarmType", getKeepwarmType())
            .append("stove", getStove())
            .append("media", getMedia()).append("alarm", getAlarm())
            .append("note", getNote())
            .append("area", getArea())
            .append("villageId", getVillageId())
            .append("population", getPopulation())
            .append("qrCode", getQrCode())
            .append("baolianrenId", getBaolianrenId())
            .append("gridId", getGridId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("totalAmount",getTotalAmount())
            .toString();
    }
}
